from moviepy.editor import *
from animation.editor import *

'''
4.	视频加文字
'''
if __name__ == '__main__':
    output_file_path = '../results/example04.mp4'
    hzwVideoClip = VideoFileClip('../videos/hzw_part.mp4')
    textClip = TextClip("视频加文字", font="SIMHEI", fontsize=40, color="blue").set_position((10,80))
    finalClip = CompositeVideoClip([hzwVideoClip, textClip.set_start(1).set_end(6)])
    finalClip.write_videofile(output_file_path, fps=25, codec="libx264", audio_codec="aac")
